package masterjava.reporting.client;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import masterjava.common.client.gwt.settings.AppSettings;
import masterjava.common.client.gxt.base.ConfigEntryPoint;
import masterjava.common.client.gxt.base.RootLayout;
import masterjava.common.client.gxt.base.info.InfoPanel;
import masterjava.common.client.gxt.highstock.HighStockType;
import masterjava.reporting.shared.ReportingSettingKeys;

public class ReportingEntryPoint extends ConfigEntryPoint {

    @Override
    protected void doLoad(RootLayout rootLayout) {
        HighStockType.init(AppSettings.<String>get(ReportingSettingKeys.settings));
        ContentPanel cp = new ContentPanel();
        cp.setHeading("Strategy Tree");
        cp.add(new ReportingNavigation());
        rootLayout.setNavigation(cp);
        rootLayout.setContent(InfoPanel.getInfoPanel(ReportingSettingKeys.reportingStartTemplate));
    }
}
